package com.meilele.controller.guoziyang;


import com.meilele.biz.guoziyang.SecShowImageBusiness;
import com.meilele.entity.guoziyang.SecShow;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/showDetail")
public class SecShowController {

    @Resource
    private SecShowImageBusiness secShowImageBusiness;

    @RequestMapping("/find/{styId}")
    public String findDetailImage(@PathVariable int styId, Model model){

        List<SecShow> secShowList = secShowImageBusiness.findDetailImages(styId);
        model.addAttribute("showDetailList" ,secShowList);
        return "second/detail";
    }
}
